//哪个页面需要检查登录权限，引入auth.js即可
if(sessionStorage.getItem("status.xiaomimall")){
    let flag = JSON.parse(sessionStorage.getItem("status.xiaomimall"));
    if(!flag){
        window.location.href='login.html';
    }
}else{
    window.location.href='login.html';
}